<html>
<head><meta charset="utf-8"><title>building doctests uses a lot of RAM · general · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/index.html">general</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/building.20doctests.20uses.20a.20lot.20of.20RAM.html">building doctests uses a lot of RAM</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="209946677"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/building%20doctests%20uses%20a%20lot%20of%20RAM/near/209946677" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/building.20doctests.20uses.20a.20lot.20of.20RAM.html#209946677">(Sep 13 2020 at 19:43)</a>:</h4>
<p><a href="/user_uploads/4715/GyqvJyNOTmVbdh8tOdfDdzx5/image.png">image.png</a> </p>
<div class="message_inline_image"><a href="/user_uploads/4715/GyqvJyNOTmVbdh8tOdfDdzx5/image.png" title="image.png"><img src="/user_uploads/4715/GyqvJyNOTmVbdh8tOdfDdzx5/image.png"></a></div><p>I'm getting a strange failure in CI for one of my projects. It's running out of memory (2 GB). Ring any bells for anyone?</p>



<a name="209946727"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/building%20doctests%20uses%20a%20lot%20of%20RAM/near/209946727" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/building.20doctests.20uses.20a.20lot.20of.20RAM.html#209946727">(Sep 13 2020 at 19:44)</a>:</h4>
<p>how many doctests do you have? rustdoc puts them all into a separate binary: <a href="https://github.com/rust-lang/rust/issues/75341">https://github.com/rust-lang/rust/issues/75341</a></p>



<a name="209946848"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/building%20doctests%20uses%20a%20lot%20of%20RAM/near/209946848" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/building.20doctests.20uses.20a.20lot.20of.20RAM.html#209946848">(Sep 13 2020 at 19:47)</a>:</h4>
<p>Not outrageous, IMO:</p>
<div class="codehilite"><pre><span></span><code>   Doc-tests snafu

running 47 tests
</code></pre></div>



<a name="209946921"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/building%20doctests%20uses%20a%20lot%20of%20RAM/near/209946921" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/building.20doctests.20uses.20a.20lot.20of.20RAM.html#209946921">(Sep 13 2020 at 19:49)</a>:</h4>
<p>The specific <a href="https://cirrus-ci.com/task/6725049480642560">CI instance</a>. Some of the tests build / run.</p>



<a name="209946968"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/building%20doctests%20uses%20a%20lot%20of%20RAM/near/209946968" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/building.20doctests.20uses.20a.20lot.20of.20RAM.html#209946968">(Sep 13 2020 at 19:50)</a>:</h4>
<p>Can I <code>-j1</code> to see if it's just the parallelism going wild?</p>



<a name="209946977"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/building%20doctests%20uses%20a%20lot%20of%20RAM/near/209946977" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/building.20doctests.20uses.20a.20lot.20of.20RAM.html#209946977">(Sep 13 2020 at 19:50)</a>:</h4>
<p>yeah, that should help figure it out</p>



<a name="209947250"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/building%20doctests%20uses%20a%20lot%20of%20RAM/near/209947250" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/building.20doctests.20uses.20a.20lot.20of.20RAM.html#209947250">(Sep 13 2020 at 19:58)</a>:</h4>
<p>Hm. Memory is flat now, but still OOM</p>
<p><a href="/user_uploads/4715/jLT3_2RHYOMyUz-KqUTfjFMG/image.png">image.png</a></p>
<div class="message_inline_image"><a href="/user_uploads/4715/jLT3_2RHYOMyUz-KqUTfjFMG/image.png" title="image.png"><img src="/user_uploads/4715/jLT3_2RHYOMyUz-KqUTfjFMG/image.png"></a></div>



<a name="209947360"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/building%20doctests%20uses%20a%20lot%20of%20RAM/near/209947360" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/building.20doctests.20uses.20a.20lot.20of.20RAM.html#209947360">(Sep 13 2020 at 20:00)</a>:</h4>
<p>maybe it spiked at the very end when you ran them? but yeah that's weird, IDK what's going on</p>



<a name="209947862"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/building%20doctests%20uses%20a%20lot%20of%20RAM/near/209947862" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/building.20doctests.20uses.20a.20lot.20of.20RAM.html#209947862">(Sep 13 2020 at 20:14)</a>:</h4>
<p>This is frustratingly opaque</p>



<a name="209955505"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/building%20doctests%20uses%20a%20lot%20of%20RAM/near/209955505" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/building.20doctests.20uses.20a.20lot.20of.20RAM.html#209955505">(Sep 14 2020 at 00:04)</a>:</h4>
<p>It does look like that graph is very coarse. It has points at 0, 60s, 120s, ...</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>